package com.example.redstarcommerce.cn.dh.history.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @ClassName History
 * @Author AndyWu
 * @Date 2024-11-01 22:34
 * @Motto 学不死就往死里学
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("history")
public class History {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("uid")
    private String uid;

    @TableField("name")
    private String name;

    @TableField("type")
    private String type;

    @TableField("introduce")
    private String introduce;

    @TableField("scoernumber")
    private Integer scoernumber;

    @TableField("begintime")
    private Timestamp begintime;

    @TableField("endtime")
    private Timestamp endtime;

    @TableField("map")
    private String map;

    public History(String uid, String name, String type, String introduce, Integer scoernumber, Timestamp begintime, Timestamp endtime, String map) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.scoernumber = scoernumber;
        this.begintime = begintime;
        this.endtime = endtime;
        this.map = map;
    }

    public History(String uid, String name, String type, String introduce, Integer scoernumber, Timestamp begintime, Timestamp endtime) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.scoernumber = scoernumber;
        this.begintime = begintime;
        this.endtime = endtime;
    }
}
